import http from '../utils/HttpUtil';

/**
 * 通过token的数据向服务器请求用户信息
 *
 */
export function getInfoByToken() {
    return http({
        url: '/sei/user/getUserInfoByToken',
        method: 'get',
    })
}

export function login(params) {
  return http.post(
    '/sei/login',
    params
  );
}

export function create(params){
  return http.put(
    '/sei/user',
    params
  );
}

export function queryByEmail(params){
  return http.get(
    '/sei/user/queryByEmail',{
      params: params
    }
  )
}

export function editInfo(params){
  return http.post(
    '/sei/user/edit',
    params
  );
}
